
import java.io.*;
import java.nio.charset.StandardCharsets;
import java.util.Scanner;

public class Iowork02 {//追加

    public static void main(String[] args) {
        Iowork02();
    }

    public static void Iowork02() {
        Scanner scan = new Scanner(System.in);
        String a = scan.next();
        FileOutputStream fis1 = null;
        try {
            fis1 = new FileOutputStream("/Users/EDC/Desktop/asd.txt", true);
            fis1.write(a.getBytes());
        } catch (FileNotFoundException e) {
            e.printStackTrace();
        } catch (IOException e) {
            e.printStackTrace();
        } finally {
            if (fis1 != null) {
                try {
                    fis1.flush();
                    fis1.close();
                } catch (IOException e) {
                    e.printStackTrace();
                }
            }
        }
    }
}
